
const getMarkdown = async (data) => {
    return request({
        url: '/md/',
        method: 'GET',
        data: data
    })
}

const saveMarkdown = async(data) => {
    return request({
        url: '/md/save',
        method: 'POST',
        data
    })
}

const uploadImage = async(data, headers) => {
    return request({
        url: '/md/image/upload',
        method: 'POST',
        data,
        options: {
            headers
        }
    })
}



export default {
    getMarkdown,
    saveMarkdown,
    uploadImage
    
}